package com.weipu.common.constants;

public final class Constant {

    public static final String COMMA = ",";
    // 840
    public static final String US_DOLLAR = "US$";
    // 欧元符号 978
    public static final String EUR = "€";
    // 巴西尼尔 986
    public static final String BRL = "R$";

    public static final String TYPE_TOPSELLERS = "TopSellers";

    public static final String TYPE_MVP24HRS = "MVP24hrs";

    public static final String TYPE_NEWARRIVALS = "NewArrivals";

    public static final String TYPE_LATESTDISCOUNT = "LatestDiscount";
	//US仓版本修改 去除Lastest Discount
	public static final String TYPE_USWAREHOUSE = "USWarehouse";

	public static final String TYPE_WAREHOUSE = "Warehouse";

	public static final String TYPE_SPORTLIGHTS = "SportLights";

    public static final int HOME_CACHE_PAGEINDEX = 1;

    public static final String SORT_POPULARITY = "d=Popularity";
    // 价格升序
    public static final String SORT_PRICE_UP = "a=Price.value";
    // 价格降序
    public static final String SORT_PRICE_DOWN = "d=Price.value";
    //折扣降序
    public static final String SORT_DISCOUNT = "d=DisCount";
    //搜索的Popularity降序
    public static final String SEACH_SORT_POPULARITY = "d=DiggCount";
    //时间降序 最新的在最前面
    public static final String SORT_DATA_DOWN = "d=ShelveDate";
    //销量降序
    public static final String SORT_SALES_DOWN = "d=SalesRank";
    public static final String TO_PRODUCTLIST_FROM = "ProductFrom";
    public static final String FROM_HOME = "Home";
    public static final String FROM_CATEGORY = "Category";
    public static final String FROM_COUPON = "Coupon";
    public static final String FROM_HOME_BFD = "Home_Bfd";
    public static final String FROM_MESSAGE = "Message";
    public static final String PRODUCTLIST_TYPE = "HomeType";
    public static final String PRODUCT_TITLE = "ProductTitle";

    /**
     * json返回状态
     */
    public static final String JSON_STATUS = "Status";

    /**
     * json返回数据
     */
    public static final String JSON_DATA = "Data";

    /**
     * json返回数据
     */
    public static final String JSON_CUSTOMER = "Customer";

    /**
     * JSON返回数据
     */
    public static final String JSON_WISHLIST = "WishList";

    /**
     * json返回数据
     */
    public static final String JSON_MODEL = "Model";

    /**
     * json返回数据
     */
    public static final String JSON_PRODUCTS = "Products";

    public static final String JSON_OBJ = "Obj";

    /**
     * json返回数据
     */
    public static final String JSON_STARTINDEX = "StartIndex";

    /**
     * json返回数据
     */
    public static final String JSON_ENDCURRENTINDEX = "EndCurrentIndex";

    /**
     * json返回数据
     */
    public static final String JSON_RESULT = "Result";

    /**
     * json返回数据
     */
    public static final String JSON_ZEROSCROE = "ZeroScroe";

    /**
     * json返回数据
     */
    public static final String JSON_ONESCROE = "OneScroe";

    /**
     * json返回数据
     */
    public static final String JSON_TWOSCROE = "TwoScroe";

    /**
     * json返回数据
     */
    public static final String JSON_THREESCROE = "ThreeScroe";

    /**
     * json返回数据
     */
    public static final String JSON_FOURSCROE = "FourScroe";

    /**
     * json返回数据
     */
    public static final String JSON_ORDERSTATUSHISTORYS = "OrderStatusHistorys";

    /**
     * json返回数据
     */
    public static final String JSON_FULFILLMENTSTATUS = "FulfillmentStatus";

    /**
     * json返回数据
     */
    public static final String JSON_TOPCATEGORY = "TopCategory";

    /**
     * json返回数据
     */
    public static final String JSON_NEWARRIVAL = "NewArrival";

    /**
     * json返回数据
     */
    public static final String JSON_BANNER = "Banner";

    /**
     * json返回数据
     */
    public static final String JSON_MESSAGE = "Message";

    /**
     * json返回数据
     */
    public static final String JSON_RESULTSET = "ResultSet";

    /**
     * json返回数据字段 IsSuccess
     */
    public static final String JSON_ISSUCCESS = "IsSuccess";

	/**
	 *
	 * json返回数据
	 *
	 */
	public static final String JSON_INTERFACESUFFIX = "InterfaceSuffix";

	// json返回数据
	public static final String JSON_TOTALRECORDS = "TotalRecords";


    // ************************ 网络交互的一些静态常量设置 START
    // ************************************//
    /**
     * 列表每次加载起始数目
     */
    public static final int LIST_START_SITE = 1;

    /**
     * @Fields MAIN_BANNER_SIZE : 首页广告上限
     */
    public static final int MAIN_BANNER_SIZE = 8;

    /**
     * 列表每次加载数据条数
     */
    public static final int LIST_PAGE_COUNT = 20;

    public static final long WEEK_MILLIS_TIME = 7 * 24 * 3600000;

    /**
     * 连接超时时间
     */
    public static int CONNECTTIMEOUT = 25 * 1000;

    // ************************ 网络交互的一些静态常量设置 START
    // ************************************//

    /**
     * 点击confirm监听的url
     */
    // HD支付成功
    public static final String CONFIRM_SUCCESS_URL = "PaypalSuccess.aspx";

    // HD 支付失败
    public static final String CONFIRM_FAIL_URL = "PaypalError.aspx";

    // Phone 支付成功
//	public static final String CONFIRM_SUCCESS_URL_M = "PaypalSuccess-m.aspx";
//
//	// Phone 支付失败
//	public static final String CONFIRM_FAIL_URL_M = "PaypalError-m.aspx";

    public static final String CONFIRM_SUCCESS_URL_M = "SuccessPhone";

    // Phone 支付失败
    public static final String CONFIRM_FAIL_URL_M = "ErrorPhone";

    /**
     * 取消支付返回的url
     */
    public static final String CANCEL_URL = "http://www.c.com/";

    /**
     * 支付失败返回的url
     */
    public static final String FAIL_URL = "http://www.e.com/";

    /**
     * 支付成功返回的url
     */
    public static final String SUCCESS_URL = "http://www.s.com/";

    /**
     * PC 上的商品详情
     */
    public static final String BUYURL = "http://www.dealextreme.com/shoppingcart.dx/add.";

    // ================每次打包修改如下三个地址即可 ================//

    public static final String BASE_HOME_URL = DxConfig.BASE_HOME_URL;
    public static final String BASE_URL = DxConfig.BASE_URL;
    public static final String SHIPPINGADRESS_URL_M = DxConfig.SHIPPINGADRESS_URL_M;
    public static final String SHIPPINGADRESS_URL = DxConfig.SHIPPINGADRESS_URL;
    public static final String FAQ_URL = DxConfig.FAQ_URL;
    public static final String GET_IP = DxConfig.GET_IP;
    public static final String GET_IP_COUNTRY_INTERFACESUFFIX = DxConfig.GET_IP_COUNTRY_INTERFACESUFFIX;


    // ================每次打包修改以上三个地址即可 ================//

    // ---------------------用户模块接口地址---------------------------
    /**
     * 注册
     */
    public static final String REGISTER_URL = BASE_URL + "users/Register";

    /**
     * 登录
     */
    public static final String LOGIN_URL = BASE_URL + "users/Login";

    /**
     * 找回密码
     */

    public static final String FORGOTPASSWORD_URL = BASE_URL + "users/";

    /**
     * 用户注销
     */
    public static final String LOGOUT_URL = "";

    /**
     * 获取用户信息
     */
    public static final String GETACCOUNTFORUSER_URL = BASE_URL + "users/";

    /**
     * 修改用户信息
     */

    public static final String UPDATEACCUNTFORUSER_URL = BASE_URL + "Users/";

    /**
     * 修改密码
     */

    public static final String CHANGEPASSWORD_URL = BASE_URL + "users";

    /**
     * 获取所有国家对照表
     */
    public static final String ALLCOUNTRY_URL = BASE_URL + "Users/CountryList";

    /**
     * 获取我的商品评论列表
     */
    public static final String CUSOTMERREVIEWLIST_URL = BASE_URL
            + "Reviews/reviewlist";

    /**
     * 用户缓存
     */
    public static final String CACHES_URL = BASE_URL + "Caches";

    /**
     * 首页
     */
    public static final String CATEGORYS_URL = BASE_URL + "Categorys";

	/**
	 * USWarehouse
	 */
	public static final String USWAREHOUSE_URL = BASE_HOME_URL
			+ "DxmUSWarehouses/GetMoreAboutThisCategory";

    /**
     * USWarehouse 后缀地址
     */
    public static final String USWAREHOUSE_INTERFACESUFFIX_URL = "DxmUSWarehouses/GetMoreAboutThisCategory";
    /**
     * LatestDiscounts
     */
    public static final String LATESTDISCOUNTS_URL = BASE_HOME_URL
            + "DxmLatestDiscounts/GetMoreAboutThisCategory";

    /**
     * MvProducts
     */
    public static final String MVPRODUCTS_URL = BASE_HOME_URL
            + "DxmMvProducts/GetMoreAboutThisCategory";

    /**
     * NewArrivals
     */
    public static final String NEWARRIVALS_URL = BASE_HOME_URL
            + "DxmNewArrivals/GetNewArrivalCategoryMore";

    /**
     * TopSellers
     */
    public static final String TOPSELLERS_URL = BASE_HOME_URL
            + "DxmTopSellers/GetMoreAboutThisCategory";

    /**
     * Spotlight
     */
    public static final String SPOTLIGHTS_URL = BASE_HOME_URL
            + "DxmSpotlights/GetSpotlightProducts";

    // --------------------商品收藏模块接口地址 -----------------------
    /**
     * 获取用户心愿单列表
     */
    public static final String WISHLISTINFOFORUSER_URL = BASE_URL
            + "Wishlists/Mywish";

    /**
     * 获取用户心愿单列表数量
     */
    public static final String GETCOUNTWISHLISTFORUSER_URL = BASE_URL
            + "Wishlists";

    /**
     * 添加商品到心愿单
     */
    public static final String ADDWISHLISTFORUSER_URL = BASE_URL
            + "Wishlists/AddWish";

    /**
     * 删除心愿单记录
     */
    public static final String DELWISHLISTFORUSER_URL = BASE_URL + "Wishlists";

    // --------------------管理地址模块接口地址 -----------------------
    /**
     * 新增收货地址
     */
    public static final String ADD_ADDRESS_URL = BASE_URL + "users/AddAddress";

    /**
     * 删除收货地址
     */
    public static final String DELETE_ADDRESS_URL = BASE_URL
            + "users/DeleteAddress";

    /**
     * 更新收货地址
     */
    public static final String UPDATE_ADDRESS_URL = BASE_URL
            + "users/UpdateAddress";

    /**
     * 获取收货地址
     */
    public static final String GET_ADDRESS_URL = BASE_URL
            + "users/GetAddresses";

    /**
     * 设置默认收获地址
     */
    public static final String SET_DEFAULT_ADDRESS_URL = BASE_URL
            + "users/ChooseDefaultAddress";
    /**
     * 设置默认收获地址
     */
    public static final String GET_DEFAULT_ADDRESS_URL = BASE_URL
            + "users/GetDefaultAddress";

    // ----------------商品目录模块的接口方法名称------------------

    /**
     * 获取顶级目录
     */
    public static final String GETTOPCATEGORIES_URL = BASE_URL + "Categorys/GetTopCategories";

    /**
     * 获取某个类别下的所有子类别
     */
    public static final String GETALLCHILDCATEGORIES_URL = BASE_URL
            + "Categorys/";

    /**
     * 获取指定目录下子目录列表
     */
    public static final String GETCHILDCATEGORIES_URL = BASE_URL + "Categorys/";

    // ------------------------商品搜索模块接口地址--------------------

    /**
     * 搜索产品列表
     */
    public static final String GETSEARCHPRODUCTLIST_URL = BASE_URL
            + "SearchProducts/search";

    /**
     * 获取搜索产品的列表(向上翻页)
     */
    public static final String GETPRODUCTLISTUP_URL = BASE_URL
            + "SearchProducts/searchup";

    /**
     * 获取产品的列表(查询本地数据库),因为搜索引擎搜索产品的时候不能进行销量排序
     */
    public static final String GETPRODUCTLIST_URL = BASE_URL
            + "SearchProducts/select";

    /**
     * 根据类目相应查询条件获取搜索产品的列表
     */
    public static final String GETPRODUCTLISTBYCATEGORYID_URL = BASE_URL
            + "SearchProducts/Category";

    /**
     * 根据类目，相应查询类型(如清仓等)查询本地mongodb产品数据集
     */

    public static final String GETPRODUCTLISTBYCATEGORYIDANDRELATEDTYPE_URL = BASE_URL
            + "SearchProducts/CategoryRelatedTypeProductList";

    /**
     * 根据类目，相应查询类型(如清仓)，查询条件查询产品总个数和星级分布情况
     */
    public static final String GETPRODUCTRESULTBYCATEGORYRELATEDTYPE_URL = BASE_URL
            + "SearchProducts/CategoryRelatedType";

    /**
     * 根据查询条件查询产品总个数和星级分布情况
     */
    public static final String GETPRODUCTRESULT_URL = BASE_URL
            + "SearchProducts/SelectProductResult";

    /**
     * 获取搜索产品的数量
     */
    public static final String COUNTPRODUCTSBYSEARCHKEY_URL = "";

    // ------------------------商品详情模块接口地址-----------------------

    /**
     * 获取商品详情信息
     */
    public static final String GETPRODUCTDETAIL_URL = BASE_URL + "Products/GetProductDetail";

    /**
     * 库存量
     */
    public static final String SALESLIMIT_URL = BASE_URL
            + "Products/saleslimit/";

    // ----------------------------相关商品---------------------------------
    /**
     * 根据一级目录ID获取此类别下的所有推广
     */
    public static final String GETCATEGORYBANNERS_URL = BASE_URL
            + "CategoryBanners";

    /**
     * 根据一级目录ID获取此类别下的所有推广商品
     */
    public static final String GETCATEGORYBANNERPRODUCTS_URL = BASE_URL
            + "CategoryBanners";

    /**
     * 根据分类推广ID获取产品数量
     */
    public static final String GETPRODUCTSCBRESULT_URL = BASE_URL
            + "CategoryBanners";

    // -------------------------用户图片及信息模块接口地址--------------------
    /**
     * 获取商品客户图片的数量(新增)
     */
    public static final String GETCUSTOMERPHOTOSNUMBER_URL = "";

    /**
     * 获取某一商品用户上传的图片列表
     */

    public static final String CUSOTMERPHOTOLIST_URL = BASE_URL
            + "Reviews/photolist";

    // -------------------------商品评论模块接口地址-----------------------
    /**
     * 获取商品评论列表
     */
    public static final String CUSOTMERREVIEWSLIST_URL = BASE_URL
            + "Reviews/reviewlist";

    /**
     * 获取商品评论总数
     */

    public static final String COUNTPRODUCTREVIEWS_URL = "";

    // ----------------------广告与促销模块接口地址--------------------------
    /**
     * 分页获取推广列表
     */
    public static final String GETPAGEBANNERS_URL = BASE_URL + "Banners/GetBanners";

    public static final String GETPAGEBANNERS_DETAIL_URL = BASE_URL + "Banners/detail";

    /**
     * 根据推广ID获取绑定的产品
     */

    public static final String GETBANNERPRODUCTS_URL = BASE_URL + "Banners";

    /**
     * @描述：获取活动对应产品列表的通用接口
     */
    public static final String GETACTIVEPRODUCT_URL = BASE_URL + "banners/GetActiveProduct";

    /**
     * 根据分类推广ID获取产品数量
     */
    public static final String GETPRODUCTBANNERRESUALT_URL = BASE_URL
            + "Banners/GetProductBannerResualt";

    // ---------------------------FAQ模块接口地址 ----------------------
    /**
     * 获取常见问题和答案（本期不需要实现）
     */
    public static final String GETAQ_URL = "";

    // ---------------------------新闻角落模块接口地址-------------------
    /**
     * 分页获取新闻列表.
     */
    public static final String GETPAGENEWS_URL = BASE_URL + "NewsDMSs";

    /**
     * 根据新闻ID获取新闻信息
     */
    public static final String GETNEWSINGLE_URL = BASE_URL + "NewsDMSs";

    // ------------------------主页模块接口地址 -----------------------

    public static final String GETHOMEDATA_URL = BASE_URL + "apphomes/gethomedata";
    /**
     * @描述：获取活动历史列表
     */
    public static final String GETACTIVITYLIST_URL = BASE_URL + "apphomes/GetActivityList";

    // ---------------------最新上架模块接口地址------------------------
    /**
     * 获取最新上架产品数量
     */
    public static final String GETTOPPRODUCTS_URL = "";

    // -------------------------地址管理模块接口地址-------------------

    /**
     * 创建地址
     */
    public static final String GREATEADDRESSBOOK_URL = "";

    /**
     * 获取地址列表
     */
    public static final String GETADDRESSBOOKLIST_URL = "";

    /**
     * 更改地址
     */
    public static final String UPDATEADDRESSBOOKLIST_URL = "";

    /**
     * 删除地址
     */
    public static final String DELETEADDRESSBOOK_URL = "";

    // -------------------------订单模块接口地址 ----------------------
    /**
     * 获取订单列表
     */
    public static final String FINDORDERS_URL = BASE_URL + "Orders";

    /**
     * 创建订单
     */
    public static final String CREATEORDER_URL = BASE_URL + "Orders/create/";

    /**
     * 根据订单号获取订单详情
     */
    public static final String GETORDER_URL = BASE_URL
            + "Orders/detail?OrderNumber=";

    /**
     * 根据订单号取消订单
     */
    public static final String CANCELORDER_URL = BASE_URL + "Orders/cancel/";

    /**
     * 收到货后完成订单
     */
    public static final String COMPLETEORDER_URL = BASE_URL
            + "Orders/complete/";

    /**
     * 为EditionOrder加锁
     */
    public static final String BEGINEDITORDER_URL = BASE_URL + "Orders/Begin/";

    /**
     * 为EditionOrder解锁
     */
    public static final String ENDEDITORDER_URL = BASE_URL + "Orders/end/";

    /**
     * 修改收获地址
     */
    public static final String CHANGESHIPPINGOPTIONS_URL = BASE_URL
            + "Orders/change/";

    /**
     * 获取订单历史状态
     */
    public static final String GETORDERSTATUSHISTORY_URL = BASE_URL
            + "orders/history?ordernumber=";

    /**
     * 获取支付状态
     */
    public static final String QUERYTRANSCATIONS_URL = BASE_URL + "payments";

    /**
     * 调用此接口获得paypal页面，登录授权后返回到给定的页面并附带一些参数信息，为调用GetMobileCheckOut接口
     */
    public static final String SetMobileCheckOut_url = BASE_URL
            + "PayMents/smco/";

	//搜索
	public static final String GETHOTSEARCHWORDS_URL=BASE_URL+"products/GetHotSearchWords";
	public static final String GETINTELLISENSEWORDS_URL=BASE_URL+"products/GetIntellisenseWords";

	//获取国家缩写
	public static final String GETCOUNTRY_URL = GET_IP_COUNTRY_INTERFACESUFFIX + "GetHttpHeaderValue";

    /**
     * 调用此接口获得paypal页面，登录授权后返回到给定的页面并附带一些参数信息，为调用GetMobileCheckOut接口
     */
    public static final String RESETMOBILE_URL = BASE_URL + "Payments/ReSet";

    public static final String CREATE_ORDER_URL = BASE_URL
            + "Orders/createSet/";
    /**
     * 部分支付URL
     */
    public static final String PARTIAL_SET_URL = BASE_URL
            + "Payments/PartialSet";

    public static final String GET_ORDER_COUNT_URL = BASE_URL
            + "orders/getOrderCount";
    //获取物流信息
    public static final String GETSHIPPINGINFO_URL = BASE_URL
            + "Fulfillments/GetShippingInfo";


    // --------------------获取今日消息------------------------
    public static final String GETMESSAGEDAY_URL = BASE_URL + "Messagess";
    public static final String GETSTARTIMAGE_URL = BASE_URL + "apphomes/GetStartImage";

    //---------------------购物车同步接口----------------------
    public static final String GETCART_URL = BASE_URL + "carts/GetCart";
    public static final String ADDCART_URL = BASE_URL + "carts/AddCart";
    public static final String CLEARCART_URL = BASE_URL + "carts/ClearCart";
    public static final String REMOVESKUFROMCART_URL = BASE_URL + "carts/RemoveCart";
    public static final String GETCARTCOUNT_URL = BASE_URL + "carts/GetCartCount";
    public static final String UPDATECART_URL = BASE_URL + "carts/UpdateCart";
    public static final String UPLOADLOCALCART_URL = BASE_URL + "carts/UploadLocalCart";

    //信用卡相关接口地址
    public static final String GETCREDITTYPE_URL = BASE_URL + "Payments/GetCreditType";
    public static final String GETCREDITCARDINFOS_URL = BASE_URL + "users/GetCreditCardInfos";
    public static final String DOCREDITCARDCHECKOUT_URL = BASE_URL + "Payments/DoCreditCardCheckout";
    public static final String DELETECREDITCARD_URL = BASE_URL + "users/DeleteCreditCard";

    //一键过滤相关接口
    public static final String GETCUSTOMERFILTER_URL = BASE_URL + "users/GetCustomerFilter";
    public static final String SAVECUSTOMERFILTER_URL = BASE_URL + "users/SaveCustomerFilter";
    public static final String SAVECUSTOMERISFILTER_URL = BASE_URL + "users/SaveCustomerIsFilter";

	/**
	 * 分类的browseID
	 */
	public static final class CategoryID {
		public static final int CATEGORIES_ELECTRONICS = 199;
		public static final int CATEGORIES_IPHONE = 299;
		public static final int CATEGORIES_COMPUTER = 399;
		public static final int CATEGORIES_TOOLS = 499;
		public static final int CATEGORIES_PHONE = 599;
		public static final int CATEGORIES_GAMES = 699;
		public static final int CATEGORIES_CAR = 799;
		public static final int CATEGORIES_TOYS = 899;
		public static final int CATEGORIES_FLASHLIGHTS_999 = 999;
		public static final int CATEGORIES_GARDEN = 1099;
		public static final int CATEGORIES_APPAREL = 1299;
		public static final int CATEGORIES_LAPTOPS = 1499;
		public static final int CATEGORIES_PHOTO = 1599;
		public static final int CATEGORIES_SPORTS = 1699;
		public static final int CATEGORIES_HEALTH = 1799;
		public static final int CATEGORIES_MAP = 100099;
		public static final int CATEGORIES_FLASHLIGHTS = 1399;
		public static final int CATEGORIES_BODYSHOP = 851099;
		public static final int CATEGORIES_USWAREHOUSE = 2017;

	}

	/**
	 * Log的TAG
	 */
	public static final class TAG {
		//统一的log TAG，方便后期删除
		public static final String TAG_TEST = "WSZLW";

	}


    //消息推送
    public static final String FEEDBACKNOTICE_URL = BASE_URL + "notices/FeedBackNotice";
    public static final String GETNOTICES_URL = BASE_URL + "notices/GetNotices";
    public static final String SETNOTICEREAD_URL = BASE_URL + "notices/SetNoticeRead";
    public static final String DELETENOTICES_URL = BASE_URL + "notices/DeleteNotices";
    public static final String GETNOTICETYPELIST_URL = BASE_URL + "notices/GetNoticeTypeList";
    public static final String GETISNOTREAD_URL = BASE_URL + "notices/GetIsNotRead";
    public static final String REGISTSHIPPINGPUSH_URL = BASE_URL + "Pushs/RegistShippingPush";
    public static final String SETSHIPPINGMSGSETTING_URL = BASE_URL + "Pushs/SetShippingMsgSetting";
    public static final String GETSHIPPINGMSGSETTINGBYCICID_URL = BASE_URL + "Pushs/GetShippingMsgSettingByCICID";


    //获取跟信息相关的活动详情
    public static final String GETACTIVEINFOR_URL = BASE_URL + "banners/GetActiveInfor";

    //APP更新
    public static final String APP_GET_VERSION_URL = BASE_URL + "Systems/GetVersion";

    public static final String APP_UPDATE_URL = "https://play.google.com/store/apps/details?id=com.epro.dx";



    /**
     * 输入性规则验证
     *
     * @author Administrator
     * @version [版本号, 2010-10-19]
     * @see [相关类/方法]
     * @since [产品/模块版本]
     */
    public static final class Rule {
        /**
         * 普通输入框最大输入长度
         */
        public static final int TEXT_MAX_LENGTH = 50;

        /**
         * 普通输入框最小输入长度
         */
        public static final int TEXT_MIN_LENGTH = 1;

        /**
         * 用户名最大输入长度
         */
        public static final int USERNAME_MAX_LENGTH = 50;

        /**
         * firstname 或者lastname最大输入长度
         */
        public static final int FIRORLASNAME_MAX_LEN = 50;

        /**
         * 密码输入框最大输入长度
         */
        public static final int PWD_MAX_LENGTH = 20;

        /**
         * 密码输入框最小输入长度
         */
        public static final int PWD_MIN_LENGTH = 6;

        /**
         * email小输入长度 a@b.c
         */
        public static final int EMAIL_MIN_LENGTH = 5;

        /**
         * UserName最小输入长度为5
         */
        public static final int USERNAME_MIN_LENGTH = 1;

    }

    /**
     * html字符、路径常量
     */
    public static final class Html {
        /**
         * webview图片替换用的key
         */
        public static final String WEB_IMAGE_KEY = "{webImageURl}";

        /**
         * 列表webview图片
         */
        public static final String WEB_IMAGE_STR = "<html><head><style>.IMG{width:80dip;height:80dip;margin-left: 0;margin-top:0}</style></head><body class='IMG'> <img weight='80' height='80' src='"
                + WEB_IMAGE_KEY + "'/></body></html>";

    }

    /**
     * 无数据展示公用键
     */
    public static final class NoDataConstant {
        /**
         * 没有数据提示公用键
         */
        public static final String NO_DATA_KEY = "no_data_key";

        /**
         * 没有数据跳转Action公用键
         */
        public static final String NO_DATA_ACTION = "no_data_action";
    }

    //----------------新特性展示页---------------------
    public static final String SHOWIDENTITIES = "showidentities";
    public static final String FINISH_SHOWIDENTIFIES = "finish_showidentities";

    // --------------------Coupon------------------------
    /**
     * 查询对应Customer可用的Coupon数量
     */
    public static final String FINDVALIDCOUPONSCOUNT_URL = BASE_URL + "SalesEvents/FindValidCouponsCount";
    /**
     * 查询Customer下的所有手动Coupon
     */
    public static final String FINDCUSTOMERCOUPONS_URL = BASE_URL + "SalesEvents/FindCustomerCoupons";
    /**
     * 查询当前可用的Coupon，在CouponMarket展示并提供领用
     */
    public static final String FINDMARKETCOUPONS_URL = BASE_URL + "SalesEvents/FindMarketCoupons";
    /**
     * 绑定Coupon，即 领取Coupon
     */
    public static final String BINDCOUPON_URL = BASE_URL + "SalesEvents/BindCoupon";
    /**
     * 预览订单
     */
    public static final String PREVIEWORDER_URL = BASE_URL + "Orders/PreviewOrder";
    /**
     * 删除Coupon
     */
    public static final String DELETE_COUPON_URL = BASE_URL + "SalesEvents/CancelBindCoupon";

    /**
     * 获取Coupon关联的产品列表
     */
    public static final String FIND_DISCOUNT_PRODUCTS_URL = BASE_URL + "SalesEvents/FindDiscountProducts";

    //---------------------------多货币显示接口地址-------------------------------
    public static final String GETCURRENCYCODES_URL = BASE_URL + "Users/GetCurrencyCodes";
    public static final String SWITCHCURRENCYCODE_URL = BASE_URL + "Products/SwitchCurrencyCode";
    public static final String SWITCHPRODUCTCURRENCY_URL = BASE_URL + "Products/SwitchProductCurrency";

    //---------------------------百分点debug模式----------------------------------
    public static final boolean BFD_DEBUGMODEL = true;

    public static enum HttpMethod {
        GET,
        POST,
        PUT,
        DELETE
    }

    /**
     * 卡类型枚举
     */
    public static enum PayMethod {
        PayPal,
        CreditCard
    }

    //----------------------------百分点修改为本地接口------------------------------
    public static final String GETRECOMMEND_URL = BASE_URL + "Recommends/GetRecommend";

    //4.	弃用友盟反馈,改调用DMS接口
    public static final String CREATEFEEDBACK_URL = BASE_URL + "FeedBacks/CreateFeedBack";

    /**
     * Intent相关常量
     */
    public static final class Intent {
        public static final String INTENT_PUT_DATA = "bundle";

        public static final String INTENT_PUT_VERSIONCODE = "app_version_code";
    }


    /**
     * Recyclerview的头部数量
     */
    public static final class RecyclerViewProperty {

        public static final int HEAD_COUNT = 1;
    }


	/**
	 * APP全局相关常量 用于SP
	 */
	public static final class Global {
		//APP版本号
		public static final String APP_VERSION_CODE = "app_version";

		//APP更新内容
		public static final String APP_UPDATE_CONTENT = "app_update_content";

		//是否阅读过新功能
		public static final String IS_KONW_NEW_FUN = "is_know_new_fun";

		//物流信息订阅开关
		public static final String TRACK_INFORMATION_SWITCH = "track_information_switch";

		//是否在物流订阅页面当关闭推送按钮是 是否显示对话框
		public static final String WHEN_CLOSE_IS_SHOW_DIALOG = "when_close_is_show_dialog";

		//是否显示过更新对话框
		public static final String IS_SHOW_UPDATE_DIALOG = "is_show_update_dialog";

		//是否有SD卡权限
		public static final String HAS_SD_PERMISSION = "has_sd_permission";

		//是否仍然处于锁屏界面
		public static final String IS_LOCK = "is_lock";

		//国家缩写的key
		public static final String COUNTRY_CODE = "Country_code";


	}

}

